Fixed crashes when GtkEntry's internal buffer is not available (bug 588395)
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 17 Jul 2009 03:19:03 +0000 (23:19 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 17 Jul 2009 03:52:46 +0000 (23:52 -0400)
commit51149246c04ba21010892c5e349564ef9893c926
tree1145800ed27353567dd3342098080900b8ea70fc
parent7f83be85956500e2b8fbf444fcf742ec5c3e8966
Fixed crashes when GtkEntry's internal buffer is not available (bug 588395)

To fix this I replaced the code that creates an internal buffer
at init and construction time with code that creates a buffer
at _get_buffer() time, this is the same as GtkTextView does and
fixes the crashes for me.
gtk/gtkentry.c